package com.example.demo111.service.impl;

import com.example.demo111.entity.Project;
import com.example.demo111.entity.UserInfo;
import com.example.demo111.mapper.ProjectMapper;
import com.example.demo111.service.ProjectService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectServiceImpl implements ProjectService {

    @Autowired
    private ProjectMapper projectMapper;


    @Override
    public List<Project> getVoteItem(String pname){ return this.projectMapper.getVoteItem(pname);}

    @Override
    public List<Project> getItem(){
        return this.projectMapper.getItem();
    }


    @Override
    public void deletePro(Integer pid) {
        this.projectMapper.deletePro(pid);
    }

    @Override
    public List<Project> getCatagory(Integer prO) {
        return this.projectMapper.getCatagoryPro(prO);
    }
    @Override
    public void Add(Project project) {
        this.projectMapper.Add(project);}

    @Override
    public Project getProId(Integer id) {
        return this.projectMapper.getProId(id);
    }

}
